﻿namespace _40_C_中两种常用实现单例模式的方式
{
    internal class Program
    {
        static void Main(string[] args)
        {
            Console.Title = "C#中两种常用实现单例模式的方式";

            //Console.WriteLine(Singleton1.Instance.Name);
            //Singleton1.Instance.show();

            Console.WriteLine(Singleton2.Instance.Name);
            Singleton2.Instance.show();


            Console.ReadKey();
        }
    }
}
